<!DOCTYPE html>
<html>
<head>
    <title>模具异常记录</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.moduleCode" @on-enter="query" placeholder="模具编码"></i-input>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>
        <Row :gutter="16" style="margin: 3px 0px 0px 0px;">
            <div class="buttons-group">
                #if($shiro.hasPermission("moduleerror:review"))
                <i-button type="primary" @click="review"><i class="fa fa-gavel"></i>&nbsp;审核</i-button>
                #end
                <!--#if($shiro.hasPermission("moduleerror:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end-->
                #if($shiro.hasPermission("moduleerror:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("moduleerror:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="moduleError" :rules="ruleValidate" :label-width="80">
            <Row>
                <i-col span="11">
                    <Form-item label="模具编码" prop="moduleCode">
                        <i-input v-model="moduleError.moduleCode" placeholder="模具编码"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="是否关闭" prop="isOff">
                        <Radio-group v-model="moduleError.isOff">
                            <Radio :label="1" ><span>是</span></Radio>
                            <Radio :label="0" ><span>否</span></Radio>
                        </Radio-group>
                        <!--<i-input v-model="moduleError.isOff" placeholder="是否关闭"></i-input>-->
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="是否更换备件" prop="isReplaceSparepart">
                        <Radio-group v-model="moduleError.isReplaceSparepart">
                            <Radio :label="1" ><span>是</span></Radio>
                            <Radio :label="0" ><span>否</span></Radio>
                        </Radio-group>
                        <!--<i-input v-model="moduleError.isReplaceSparepart" placeholder="是否更换备件"></i-input>-->
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="维护日期" prop="maintainTime">
                        <Date-picker type="date" format="yyyy-MM-dd" v-model="moduleError.maintainTime" placeholder="维护日期"></Date-picker>
                        <!--<i-input v-model="moduleError.maintainTime" placeholder="维护日期"></i-input>-->
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="车间" prop="workshop">
                        <i-input v-model="moduleError.workshop" placeholder="车间"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="生产线" prop="productLine">
                        <i-input v-model="moduleError.productLine" placeholder="生产线"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="现象描述" prop="description">
                        <i-input v-model="moduleError.description" placeholder="现象描述"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="处理建议" prop="dealSuggest">
                        <i-input v-model="moduleError.dealSuggest" placeholder="处理建议"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="处理意见" prop="dealOpinion">
                        <i-input v-model="moduleError.dealOpinion" placeholder="处理意见"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="模具类型" prop="moduleType">
                        <i-input v-model="moduleError.moduleType" placeholder="模具类型"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="产品系列" prop="productSeries">
                        <i-input v-model="moduleError.productSeries" placeholder="产品系列"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="产品类型" prop="productType">
                        <i-input v-model="moduleError.productType" placeholder="产品类型"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="22">
                    <Form-item label="所属维护记录" prop="maintainRecord">
                        <i-input v-model="moduleError.maintainRecord" placeholder="所属维护记录"></i-input>
                    </Form-item>
                </i-col>
            </Row>

            <!--<Form-item label="异常复核确认人" prop="errorReviewUser">
                <i-input v-model="moduleError.errorReviewUser" placeholder="异常复核确认人"></i-input>
            </Form-item>
            <Form-item label="异常审核时间" prop="errorCheckTime">
                <i-input v-model="moduleError.errorCheckTime" placeholder="异常审核时间"></i-input>
            </Form-item>
            <Form-item label="修改时间" prop="updateTime">
                <i-input v-model="moduleError.updateTime" placeholder="修改时间"></i-input>
            </Form-item>
            <Form-item label="修改人" prop="updateUser">
                <i-input v-model="moduleError.updateUser" placeholder="修改人"></i-input>
            </Form-item>
            <Form-item label="操作时间" prop="createTime">
                <i-input v-model="moduleError.createTime" placeholder="操作时间"></i-input>
            </Form-item>
            <Form-item label="操作人姓名" prop="createUser">
                <i-input v-model="moduleError.createUser" placeholder="操作人姓名"></i-input>
            </Form-item>
            <Form-item label="删除标识" prop="delFlag">
                <i-input v-model="moduleError.delFlag" placeholder="删除标识"></i-input>
            </Form-item>-->
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px">返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/module/moduleerror.js?_${date.systemTime}"></script>
</body>
</html>
